package com.weiyuwqj.api.service;

import com.weiyuwqj.api.base.BaseService;
import com.weiyuwqj.api.common.PageList;
import com.weiyuwqj.api.common.Paginator;
import com.weiyuwqj.api.model.SysConfigTicketRule;
import com.weiyuwqj.api.model.TicketParamEntity;

import java.util.Map;

/**
 * Created by huzj on 2016/8/24.
 */
public interface SysConfigTicketRuleService extends BaseService<SysConfigTicketRule> {

    //根据规则条件为用户增加卡劵
    Map addTicket(TicketParamEntity paramEntity);

    //红包规则分页查询
    PageList getCouponList(Paginator p, Map<String, Object> param);

    PageList getTicketList(Paginator p, Map<String, Object> param);

    int insertRule(SysConfigTicketRule rule);

    void updateStatus(Integer ruleId, Integer newStatus);

    void updateRule(SysConfigTicketRule rule);

    void updateRuleTimerStatus(Map map);

}
